package com.itheima.service.impl;

import com.itheima.service.UserService;

import java.util.Arrays;

public class UserServiceImplA implements UserService {
    //目标1:通过set方法给成员赋数据值
    private String username;
    private String password;
    private Boolean lock;
    private String[] hobby;

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setLock(Boolean lock) {
        this.lock = lock;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    @Override
    public void save() {
        System.out.println("UserServiceImpl.save");
    }

    @Override
    public String toString() {
        return "UserServiceImplA{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", lock=" + lock +
                ", hobby=" + Arrays.toString(hobby) +
                '}';
    }
}
